package com.etop.learnapp.activity;

import android.app.Activity;
import android.os.Bundle;
import android.widget.RelativeLayout;

import com.etop.learnapp.R;
import com.etop.learnapp.util.BitmapCreate;

import uk.co.senab.photoview.PhotoView;
import uk.co.senab.photoview.PhotoViewAttacher;


/**
 * Created by Administrator on 2015-11-03.
 */
public class PicActivity extends Activity {
    PhotoView ic;
    PhotoViewAttacher mAttacher;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.test_picture);
        String name;
        ic= (PhotoView)findViewById(R.id.imageView);
        RelativeLayout lin = (RelativeLayout)findViewById(R.id.ln);
        name = this.getIntent().getStringExtra("Resources");
        new BitmapCreate(name,lin.getContext(),ic);
        mAttacher = new PhotoViewAttacher(ic);
    }
}
